package com.object.module.didi.service.impl;

import org.springframework.stereotype.Service;

import java.util.Map;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.object.configuration.utils.PageUtils;
import com.object.configuration.utils.Query;

import com.object.dao.didi.DdRoleDao;
import com.object.module.didi.entity.DdRoleEntity;
import com.object.module.didi.service.DdRoleService;


@Service("ddRoleService")
public class DdRoleServiceImpl extends ServiceImpl<DdRoleDao, DdRoleEntity> implements DdRoleService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<DdRoleEntity> page = this.page(
                new Query<DdRoleEntity>().getPage(params),
                new QueryWrapper<DdRoleEntity>()
        );

        return new PageUtils(page);
    }

}